package zhoug.common.share;

/**
 * 分享的客户端类型
 */
public enum ClientType {
    Wechat(1, "微信","微信",true,true,true),
    WechatMoments(2, "朋友圈","微信",false,true,false),
    QQ(3, "QQ","QQ",true,true,true),
    QZone(4, "QQ空间","QQ空间",true,true,false),
    SinaWeibo(5, "微博","微博",true,true,false),
    Local(6, "保存本地","本地存储",true,true,true);

    private int type;
    private String name;//eg:朋友圈
    private String clientName;//eg:微信
    private boolean supportText;//是否支持文本分享
    private boolean supportImage;//是否支持图片分享
    private boolean supportHtml;//是否支持网页分享

    ClientType(int type, String name,String clientName,boolean supportText,boolean supportImage,boolean supportHtml) {
        this.type = type;
        this.name = name;
        this.clientName = clientName;
        this.supportText = supportText;
        this.supportImage = supportImage;
        this.supportHtml = supportHtml;
    }

    public int getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public String getClientName() {
        return clientName;
    }

    public boolean isSupportText() {
        return supportText;
    }

    public boolean isSupportImage() {
        return supportImage;
    }

    public boolean isSupportHtml() {
        return supportHtml;
    }

}
